package com.chenxin.interact.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.chenxin.interact.domain.wmsToMes.WmsToMesOrder;
import com.chenxin.interact.mapper.WmsToMesOrderMapper;
import com.chenxin.interact.service.IWmsToMesOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WmsToMesOrderServiceImpl implements IWmsToMesOrderService {
    @Autowired
    private WmsToMesOrderMapper wmsToMesOrderMapper;

    public List<WmsToMesOrder> selectWmsToMesOrderList() {
        QueryWrapper<WmsToMesOrder> wrapper = new QueryWrapper<>();
        wrapper.eq("status", 0).last("order by create_date");
        return wmsToMesOrderMapper.selectList(wrapper);
    }
}
